# Contributor: Joseph Benden <joe@benden.us>
# Maintainer: Joseph Benden <joe@benden.us>
pkgname=topgit
pkgver=0.19.13
pkgrel=1
pkgdesc="A different patch queue manager"
arch="noarch"
url="https://github.com/mackyle/topgit"
license="GPL-2.0-or-later"
options="!check"
depends="git gawk sed"
makedepends="perl"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="$pkgname-$pkgver.tar.gz::https://github.com/mackyle/topgit/archive/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

build() {
	make prefix=/usr sharedir=/usr/share/doc/$pkgname
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr sharedir=/usr/share/doc/$pkgname install
	install -Dm0644 contrib/tg-completion.bash \
		"$pkgdir"/usr/share/bash-completion/completions/tg.bash
}

sha512sums="
8e477504c5f873651854c9412864c9dcb0ee35d0349b65e7c5d618a0add0fad3f749381edbe17195981bae3ff9f0e7323286abf7a5c6b744721ba2cc2a5d40d4  topgit-0.19.13.tar.gz
"
